package com.mingteng.mobile_feedback.domin.Mapper;

import com.mingteng.mobile_feedback.domin.PlanInfo;
import com.mingteng.mobile_feedback.domin.ViewMesScInfoList;
import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class PlanInfoMapper implements RowMapper<PlanInfo> {
    @Override
    public PlanInfo mapRow(ResultSet rs, int rowNum) throws SQLException {
        PlanInfo v = new PlanInfo();
        v.setOrderNeedDate(rs.getString("OrderNeedDate"));
        v.setCustomerName(rs.getString("CustomerName"));
        v.setGxCode(rs.getString("Gx_Code"));
        v.setGxName(rs.getString("Gx_Name"));
        v.setJh(rs.getString("JH"));
        v.setJhDate(rs.getString("jhDate"));
        v.setJhksDate(rs.getString("JHKSDate"));
        v.setJHZxBz(rs.getString("JH_Zx_Bz"));
        v.setProductName(rs.getString("ProductName"));
        v.setPweight(rs.getString("Pweight"));
        v.setScOrderCode(rs.getString("ScOrder_Code"));
        return v;
    }
}
